package com.irdstudio.efp.cus.service.facade;

import com.irdstudio.efp.cus.service.vo.CompanyWhiteListVO;
import com.irdstudio.efp.cus.service.vo.CompanyWhiteDeleteExcelVO;


import java.util.List;

/**
 * Service Interface: 企业白名单
 *
 * @author gcb
 * @date 2020-07-31
 */
public interface CompanyWhiteListService {
    /**
     * 新增数据
     *
     * @param companyWhiteListVO
     * @return
     */
    int insert(CompanyWhiteListVO companyWhiteListVO);

    /**
     * 根据主键删除信息
     *
     * @param companyWhiteListVO
     * @return
     */
    int deleteByPk(CompanyWhiteListVO companyWhiteListVO);

    /**
     * 根据主键更新信息
     *
     * @param companyWhiteListVO
     * @return
     */
    int updateByPk(CompanyWhiteListVO companyWhiteListVO);

    /**
     * 根据主键查询详情
     *
     * @param companyWhiteListVO
     * @return
     */
    CompanyWhiteListVO queryByPk(CompanyWhiteListVO companyWhiteListVO);

    /**
     * 查询所有列表数据
     *
     * @param companyWhiteListVO
     * @return
     */
    public List<CompanyWhiteListVO> queryAllList(CompanyWhiteListVO companyWhiteListVO);


    /**
     * 根据条件查询企业白名单
     * @param companyWhiteListVO
     * @return
     */
    public List<CompanyWhiteListVO> queryCWhiteListByCondition(CompanyWhiteListVO companyWhiteListVO);

    /**
     * 根据企业ID列表批量删除
     * @return
     */
    public int batchDeleteByCompanyId(CompanyWhiteListVO param);

    public int upDateToSetDt(CompanyWhiteListVO companyWhiteListVO);

    public int batchInsertList(List<CompanyWhiteListVO> inserListBatch);

    public List<CompanyWhiteListVO> queryConditions(CompanyWhiteListVO personalWhiteListVO);

    public int updateCompany(CompanyWhiteListVO updatePersonal);

    //导入excel文件删除数据
    public int batchDelCompanyWhiteByExcel(List<CompanyWhiteDeleteExcelVO>  companyWhiteDelExcelVO);

    List<CompanyWhiteListVO> queryCompanyName(CompanyWhiteListVO companyWhiteListVO) throws Exception;


    List<CompanyWhiteListVO> queryOverDtList() throws Exception;

    int deleteByCompName(CompanyWhiteListVO entpNm);

    int updateByCompName(CompanyWhiteListVO item);

    int effectiveDate();
}